import os.path
# file=open('./1.txt','r',encoding='utf-8')
# print(file.read())
# file.close()
#with open('./1.txt', 'r',encoding='utf-8') as file:
    #print(file.read(9))
    # print(file.read(3))
    # print(file.readline())
    # print(file.readline().strip())
    # print(file.readline())
    #list=file.readlines()
    # print(list)
    # while True:
    #     line = file.readline()
    #     if not line:
    #         break
    #     print(line.strip()

# with open('./2.txt','a',encoding='utf-8') as file:
#     a=file.write('我和我的祖国，一刻也不能分割')
#
# with open('./a.png','rb') as file:
#     with open()as file2:
#      while True:
#          data=file.readline()
#          if not data:
#               break
#         file2.write(data)
#
# flag =os.path.exists()
# flag2=os.path.exists()
# print(flag)
# print(flag2)
# os.makedirs()
# flag2=os.path.exists()
# print(flag2)
# os.remove()
# os.rename('1.txt', 'wang.txt')
# print(os.getcwd())
# print(os.listdir('.'))

for root, dirs, files in os.walk('./'):
  print(root)
  print('---------------------------1')
  print(dirs)
  print('-------------------------------2')
  print(files)
  print('---------------------------3')


